gtkmodelbutton: Ignore releases outside of the button
authorSebastian Keller <skeller@gnome.org>
Thu, 20 Apr 2023 22:31:53 +0000 (00:31 +0200)
committerSebastian Keller <skeller@gnome.org>
Tue, 25 Apr 2023 17:28:42 +0000 (19:28 +0200)
commita678e9fdd94962c59614a339dd23458b8d5a3156
tree1daacdd5430630baec23e6c05b1db86123f25778
parent248d13d8dc0eb094170c5674e92d29819bd7dad5
gtkmodelbutton: Ignore releases outside of the button

This is also how regular buttons behave. Otherwise releasing on a
different menu item would register a click on the item that was
originally pressed. In these cases it is better to not register a click
at all.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5760
gtk/gtkmodelbutton.c